Skip to content

Plex - Add proxy configuration for library streams #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

gianmarco-mameli
Copy link
Contributor

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description

Hi, I'm experiencing a problem in Plex with Auto Proxy mod behind Swag, in some version of the plex app and via web, the subtitles are not displayed even if correctly active on the player; specifically the subtitles are external in SRT format.
I've found a post on the Plex forum describing the solution (link on Source/References), and I've tested it successfully including the fix in the Plex proxy configuration sample.
For reference before the fix in the error.log on nginx inside SWAG you can find error like this:

2025/03/20 14:43:57 [error] 1348#1348: *75271 upstream sent duplicate header line: 
"Content-Length: 57218", previous value: "Content-Length: 57218" while reading response header from upstream, 
client: x.x.x.x, server: plex.*, request: "GET /library/streams/1407?X-Plex-Token=xxxxxxxxxxxxxxxxxx&encoding=utf-8 
HTTP/1.1", upstream: "http://x.x.x.x:32400/library/streams/1407?X-Plex-Token=xxxxxxxxxxxxxxx&encoding=utf-8", host: 
"plex.domain.io"

Benefits of this PR and context

In Plex you can finally use and see external SRT subtitles on Plex App versions like Linux or Web

How Has This Been Tested?

Used SWAG with Auto-Proxy mod and modified the plex.subdomain.conf.sample with the new location /library/streams/; Played some movies with external SRT subtitles in Plex for Linux and via web, the subtitles now are working correctly, no more errors on nginx

Source / References

https://forums.plex.tv/t/external-srt-subtitles-are-not-working/886540/29

@gianmarco-mameli gianmarco-mameli changed the title Add proxy configuration for Plex library streams Plex - Add proxy configuration for library streams Mar 20, 2025
@gianmarco-mameli
Copy link
Contributor Author

Hi, any news on this PR? Thanks

@noaho
Copy link

noaho commented Apr 24, 2025

I have the same issue. Took me a long time to realize it was swag. Same errors in my logs.

Copy link
Member

@Roxedus Roxedus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also change the date on top of the file

@gianmarco-mameli
Copy link
Contributor Author

Hi @Roxedus, date updated, thank you

@github-project-automation github-project-automation bot moved this from PRs to PRs Approved in Issue & PR Tracker May 23, 2025
@Roxedus Roxedus merged commit 0ea06f4 into linuxserver:master May 23, 2025
2 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker May 23, 2025
@gianmarco-mameli gianmarco-mameli deleted the plex-fix-external-srt-subtitles-are-not-working branch May 23, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants